package models

// MaMerchantConfig [...]
type MaMerchantConfig struct {
	ID         string `gorm:"primaryKey;column:id;type:bigint unsigned;not null;comment:唯一ID" json:"id" json_old:"ID"`
	MasterID   string `gorm:"column:master_id;type:bigint;default:0;comment:已废弃" json:"master_id"`
	Username   string `gorm:"index:ma_user_shop_info_ibfk_2;column:user_name;type:varchar(50);not null;comment:用户名" json:"user_name" json_old:"UserName"`
	PaymentsID string `gorm:"column:payments_id;type:varchar(255);default:'';comment:支付方式集合" json:"payments_id" json_old:"PaymentsID"`
	Status     int    `gorm:"column:status;type:tinyint(1);default:0;comment:状态 0 正常 1异常" json:"status" json_old:"Status"`
	Remark     string `gorm:"column:remark;type:varchar(255);default:''" json:"remark" json_old:"Remark"`
	Deleted    int    `gorm:"column:deleted;type:tinyint(1);default:0;comment:0正常 1删除" json:"deleted" json_old:"Deleted"`
}

// TableName get sql table name.获取数据库表名
func (m MaMerchantConfig) TableName() string {
	return "ma_merchant_config"
}

// 模式自动注册
func init() {
	Models = append(Models, &MaMerchantConfig{})
}
